package com.atlzk.renting.user.MQ;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author King
 * @date 2021/6/30 - 22:01
 */
@Configuration
public class MQConfig {

    public static final String USER_QUEUE = "UserCode.queue";

    @Bean
    public Queue user_queue() {
        return new Queue(USER_QUEUE, true);
    }
}
